<?php
namespace app\common\model;

use app\common\helper\Obj2Array;
use app\common\model\Base;
use think\Model;

class WechatUserModel extends Base {

    protected $table = 'ph_wechat_user';

    public static function getAppletList() {
        $userM = new self();
        $userD = $userM->field('id, applet_id, applet_name, openid, avatar_url, nick_name')->select();
        if (empty($userD)) {
            return [];
        }
        return Obj2Array::resObject2Array($userD);
    }

}